# Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
# Generator  : CPANPLUS::Dist::Arch 1.30

pkgname='perl-email-sender'
pkgver=2.600
pkgrel=3
pkgdesc="a library for sending email"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-capture-tiny>=0.08' 'perl-email-abstract>=3.006' 'perl-email-address-xs'
	 'perl-email-simple>=1.998' 'perl-list-moreutils' 'perl-module-runtime'
	 'perl-moo>=1.000008' 'perl-moox-types-mooselike>=0.15' 'perl-sub-exporter'
	 'perl-throwable' 'perl-try-tiny' 'perl-mro-compat')
makedepends=()
optdepends=('perl-authen-sasl')
url='https://search.cpan.org/dist/Email-Sender/'
source=("https://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Email-Sender-$pkgver.tar.gz")
sha256sums=('ecc675d030d79d9a4fb064567ea885c66b17c3862379ad30f8205a281cd8ee29')

build() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
      PERL_AUTOINSTALL=--skipdeps                            \
      PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$pkgdir"'"     \
      PERL_MB_OPT="--installdirs vendor --destdir '"$pkgdir"'" \
      MODULEBUILDRC=/dev/null

    cd "$srcdir/Email-Sender-$pkgver"
    /usr/bin/perl Makefile.PL
    make
  )
}

check() {
  cd "$srcdir/Email-Sender-$pkgver"
#  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
#    make test
#  )
}

package() {
  cd "$srcdir/Email-Sender-$pkgver"
  make install
  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
